package lab02.test35;

public class Test35 {

    public static void main(String[] args) {


        Employee[] Employee = new Employee[3];

        Employee[0] = new Manager("manager");
        Employee[1] = new Salesman("salesman");
        Employee[2] = new Worker("worker");


        for (int i = 0; i < 3; i++) {
            Employee[i].computeSalary();
        }

        for (int j = 0; j < 3; j++) {
            System.out.println(Employee[j].getName() + " :" + Employee[j].getSalary());
        }

    }
}
